package com.ldu.dao.dataobject;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.io.Serializable;
import java.util.Date;

public class AdminDO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * This field corresponds to the database column admin.id
     */
    private Long id;

    /**
     * This field corresponds to the database column admin.username
     */
    private String username;

    /**
     * This field corresponds to the database column admin.phone
     */
    private Long phone;

    /**
     * This field corresponds to the database column admin.password
     */
    private String password;

    /**
     * This field corresponds to the database column admin.user_role
     */
    private Integer userRole;

    /**
     * This field corresponds to the database column admin.gmt_create
     */
    private Date gmtCreate;

    /**
     * This field corresponds to the database column admin.gmt_modified
     */
    private Date gmtModified;

    /**
     * This field corresponds to the database column admin.is_deleted
     */
    private Integer isDeleted;

	public Long getId() {
	                return id;
	    
	}

	public void setId(Long id) {
                    this.id = id;
	    
	}

	public String getUsername() {
	                return username;
	    
	}

	public void setUsername(String username) {
                    this.username = username;
	    
	}

	public Long getPhone() {
	                return phone;
	    
	}

	public void setPhone(Long phone) {
                    this.phone = phone;
	    
	}

	public String getPassword() {
	                return password;
	    
	}

	public void setPassword(String password) {
                    this.password = password;
	    
	}

	public Integer getUserRole() {
	                return userRole;
	    
	}

	public void setUserRole(Integer userRole) {
                    this.userRole = userRole;
	    
	}

	public Date getGmtCreate() {
	                 return gmtCreate == null ? null : new Date(gmtCreate.getTime());
        
	}

	public void setGmtCreate(Date gmtCreate) {
                     this.gmtCreate = gmtCreate == null ? null : new Date(gmtCreate.getTime());
        
	}

	public Date getGmtModified() {
	                 return gmtModified == null ? null : new Date(gmtModified.getTime());
        
	}

	public void setGmtModified(Date gmtModified) {
                     this.gmtModified = gmtModified == null ? null : new Date(gmtModified.getTime());
        
	}

	public Integer getIsDeleted() {
	                return isDeleted;
	    
	}

	public void setIsDeleted(Integer isDeleted) {
                    this.isDeleted = isDeleted;
	    
	}


	public static interface IField {
		
		public static final String f_id = "id";
		
		public static final String f_username = "username";
		
		public static final String f_phone = "phone";
		
		public static final String f_password = "password";
		
		public static final String f_user_role = "userRole";
		
		public static final String f_gmt_create = "gmtCreate";
		
		public static final String f_gmt_modified = "gmtModified";
		
		public static final String f_is_deleted = "isDeleted";
		
	}

    @Override
    public String toString(){
        return ReflectionToStringBuilder.toString(this, ToStringStyle.DEFAULT_STYLE);
    }
}